package com.itany.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "user")
public class User {

//    @Value("${user.id}")
//    private Integer id;
//
//    @Value("${user.username}")
//    private String username;
//
//    @Value("${user.password}")
//    private String password;


    private Integer id;

    private String username;

    private String password;
}
